package com.ytzl.itrip.enuminfo;

/**
 * Description: 本类用于维护返回给前端的状态信息
 * Created by gengshu on 2019/12/24 9:04
 */

import lombok.Getter;

@Getter
public enum ItripUserErrorCodeEnum {
    USER_CAN_USING("用户名可使用！！"),
    REGISTER_SUCCESS("注册成功！！"),
    ACTIVATE_SUCCESS("激活成功！！"),
    USER_EXISTED("1001","用户已存在！！"),
    QUERY_EXCEPTIONN("1002","查询失败！！"),
    INVALID_PARAM("1003","参数无效！！"),
    ADD_FAILED("1004","添加失败！！"),
    REGISTER_FAILED("1005","注册失败！！"),
    ACTIVATE_FAILED("1006","激活失败！！"),
    ACTIVATE_ERROR("1007","激活操作失败！！"),
    LOGIN_SUCCESS("1008","登录失败！！"),
    LOGIN_ERROR("1009","登录操作失败！！"),
    NO_ACTIVATED("1010","未激活！！")
    ;
    private String statusCode;  //状态码
    private String statusMessage;   //状态消息

    ItripUserErrorCodeEnum(String statusCode, String statusMessage) {
        this.statusCode = statusCode;
        this.statusMessage = statusMessage;
    }

    ItripUserErrorCodeEnum(String statusMessage) {
        this.statusMessage = statusMessage;
    }
}
